00001 00005 class Vehicle:public TraffEduObject{ 00006 00007 private: 00008 00009 Path path; 00010 00011 public: 00016 Vehicle(); 00023 Vehicle(string pathname,float scale); 00030 void draw(osg::ref_ptr<osg::Group> root,int animationFlag=-1); 00035 Wheel wheelObjects[4]; 00040 void deletePath(); 00046 Path* getPath(); 00050 void setPath(); 00056 void hidePath(osg::ref_ptr<osg::Group> root); 00062 void displayPath(osg::ref_ptr<osg::Group> root); 00068 void drawPath(osg::ref_ptr<osg::Group> root); 00077 void reload(osg::ref_ptr<osg::Group> root, int animationFlag=-1); 00083 void setWheels(osg::ref_ptr<osg::Group> root ); 00091 void setPositionAll(float x,float y,float z); 00092 }; 00093 00094 00095 00096 00097
1.4.6-NO